home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nikkei Mac 20
/
NIKKEI-MAC-CD-VOL-20-1998-12.ISO.7z
/
NIKKEI-MAC-CD-VOL-20-1998-12.ISO
/
オンラインソフト
/
5.文書作成支援
/
UltraFind
/
UltraFind 2.5.3 Full Pack.sit
/
UltraFind 2.5.3 Full Package
/
AppleScript™ Examples
/
UF by Date
< prev
next >
Wrap
Text File
|
1997-06-22
|
2KB
|
65 lines
set FileInfo to ""
tell application "UltraFind 2.5.3"
clear
set the dateModified of its searchRoutine to "today"
--other examples :
--(NOTE: use short date in LOCAL format, i.e. UK = DAY/MONTH/YEAR, but US = MONTH/DAY/YEAR, etc.)
-- set the dateModified of its searchRoutine to "before 1/1/96"
-- set the dateModified of its searchRoutine to "after 1/1/96"
-- set the dateModified of its searchRoutine to "between 1/1/96 10/1/96"
-- set the dateCreated of its searchRoutine to "on 1/1/96"
scan
if the result is greater than 0 then
changeView finderView
sort by date last modified
end if
end tell
copy the result to numFiles
if numFiles is greater than 0 then
repeat with fileNum from 1 to numFiles
tell application "UltraFind 2.5.3"
copy (the filenamed of fileRecord fileNum) to fName
end tell
set FileInfo to FileInfo & fName & return
end repeat
end if
-- ---------------------------------------------------------------------
-- OUTPUT
-- In this example a Scriptable Text Editor is used
-- you should replace this with the application you want the information output to.
-- ---------------------------------------------------------------------
tell application "Scriptable Text Editor"
activate
make new document at beginning
set size of selection to 10
set selection to "-----------------------------------------------------------
" & numFiles & " files modified today
-----------------------------------------------------------
" & FileInfo
save document 1 in file "Modified Files List"
end tell